package com.xiaoyu.lanling.feature.guard.data

import com.xiaoyu.base.net.RequestCreator
import com.xiaoyu.lanling.common.config.HttpConfig
import com.xiaoyu.lanling.event.guard.GiveUpGuardEvent

class GuardData {

    companion object {
        fun giveUpGuard(requestTag: Any, uid: String) {
            RequestCreator.create<GiveUpGuardEvent>(requestTag, GiveUpGuardEvent::class.java)
                    .setRequestUrl(HttpConfig.LANLING_GUARD_GIVE_UP_GUARD)
                    .addQueryData("uid", uid)
                    .enqueue()
        }
    }
}